package com.education.service.statistics.feign;

import com.education.result.R;
import com.education.service.statistics.feign.fallback.UcenterMemberServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 远程调用 - 用户注册统计
 * Created by Lance on 2020/07/12 17:02
 */
@Repository
@FeignClient(value = "online-education-service-ucenter", fallback = UcenterMemberServiceFallBack.class)
public interface UcenterMemberService {

    /**
     * 根据日期 - 统计注册人数
     * @param day
     * @return
     */
    @GetMapping(value = "/admin/ucenter/member/count-register-num/{day}")
    R countRegisterNum(@PathVariable("day") String day);
}
